package smartlifev30.com.sdk.bean.response;


/**
 *
 * @author uesr
 * @date 2018/8/10
 */

public class DeviceStateInfo {

    /**
     * 设备的Id
     */
    private int deviceId;

    /**
     * 该设备的状态
     */
    private DeviceStatusResponse.DeviceListBean.DeviceStatusBean deviceStatus;

    public DeviceStateInfo(int deviceId) {
        this.deviceId = deviceId;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(int deviceId) {
        this.deviceId = deviceId;
    }

    public DeviceStatusResponse.DeviceListBean.DeviceStatusBean getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(DeviceStatusResponse.DeviceListBean.DeviceStatusBean deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DeviceStateInfo that = (DeviceStateInfo) o;

        return deviceId == that.deviceId;
    }

    @Override
    public int hashCode() {
        return deviceId;
    }
}
